package oa.hleast.xswl.mapper.activity;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import oa.hleast.xswl.pojo.domain.activity.CmsUserSignIn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CmsUserSignInMapper extends BaseMapper<CmsUserSignIn> {

    @Select("select count(*) from `cms_user_sign_in` where  to_days(sign_in_date) = to_days(now()) and user_id = #{studentUserId} and scenes_id = #{activityId} limit 1")
    Integer countToDayActivityId(Long studentUserId, Long activityId);
}